package com.gxa.uhome.mapper;

import com.gxa.uhome.pojo.Shipper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author: XHZ
 * @Date: 11:04 2021/6/7
 */
public interface ShipperMapper {
    Integer insert(Shipper shipper);

    List<Shipper> selectLikeByPage(String nameOrPhone, Boolean isUse, Integer offset, Integer size);

    List<Shipper> selectByPage(@Param(value = "isUse") Boolean isUse, Integer offset, Integer size);

    Integer deleteByPhone(String phone);

    Integer update(Shipper shipper);

    Integer updateIsUseById(@Param(value = "id") Integer id, @Param(value = "isUse") Boolean isUse);

    Integer selectMaxId();

    Integer count();

    Shipper loginByPhone(@Param(value = "phone") String phone);

}
